﻿package  {
	
	import flash.display.*;
	import II.util.*;
	import II.controls.*;
	import flash.geom.Point;
	//import flash.sampler.StackFrame;
	
	public class main extends MovieClip {
				
		public function main() {
			// constructor code
			//var ev:Eval = new Eval (this, this);
			//var res = ev.evaluate ("fiffo = (4+5)==9");
			//trace (res.valueStr);
			
				
			
			
			var stack:UIBase = new UIStackPanel();
			for ( var cont:int=0; cont<200; cont++ ) {
				stack.addChild ( new UICicciobello() );
			}
			stack.name = "stack_left_up";
			
			
			var scroller:UIScrollPanel = new UIScrollPanel();
			scroller.isMasked = true;
			scroller.isScrollHorizontal = false;
			scroller.snap = new Point ( 0, 50 );
			scroller.content = stack;
			scroller.size = new Size ( this.width, 300 );
			scroller.name = "scroll_left_up";
			
			
			var stack2:UIStackPanel = new UIStackPanel();
			for ( var cont:int=0; cont<200; cont++ ) {
				stack2.addChild ( new UICicciobello() );
			}			
			stack2.name = "stack_left_down";
			
			var scroller2:UIScrollPanel = new UIScrollPanel();
			scroller2.isMasked = true;
			scroller2.content = stack2;
			scroller2.size = new Size ( this.width, 400 );
			scroller2.name = "scroll_left_down";

			
			var stack3:UIBase = new UIStackPanel();
			stack3.addChild(scroller);
			stack3.addChild(scroller2);
			stack3.name = "stack_left";
			
			
			
			var rootstak:UIStackPanel = new UIStackPanel();
			rootstak.direction = UIStackPanel.STACK_HORIZ;
			rootstak.addChild( stack3 );
			rootstak.addChild( new UICicciobello() );
			rootstak.name = "stack_main";
			
			var rootscroll:UIScrollPanel = new UIScrollPanel();
			rootscroll.size = new Size ( this.width, this.height );
			rootscroll.content = rootstak;
			rootscroll.name = "scroll_main";
			
			this.addChild ( rootscroll );
			
			rootscroll.updateLayout();
			
			
			UIManager.Root = this.stage;
		}
		
	}
	
}
